<?php
namespace Hive\Mission\Job;
/**
 * Mission Job Board,
 * 
 * It represent a publishing target output (website or not)
 * 
 *
 * @author Xavier VILAIN
 * @package Hive\Mission\Job
 *
 * @property string	$boardid	Id of the boardid
 * @property string $language	Default Language
 * @property string	$label		Source name
 * @property string	$url		Target URL
 * @property bool	$standard	Is a standard type (can't be changed)
 * @property bool	$active		Active ?
 * 
 */
class Board  extends \Fox\Object\Versioned {
	
	/**
	 * (non-PHPdoc)
	 * @see Fox\Object.Versioned::beforeCreate()
	 */
	protected function beforeVersionCreate() {
		$language = $this->language;
		if(empty($language)) {
			$this->language = \Xview::instance()->language();
		}
	}
 	
	/**
	 * @return string Label
	 */
	public function label() {
		return $this->label;
	}
}
\Fox\Dao::infos(Board::className(),new \Fox\Object\Info('mission_job_boards',\Fox\Databases::DB_APP));